package de.thw.web.factory;

import org.springframework.web.servlet.ModelAndView;

import de.thw.web.object.Page;

public class ViewFactory extends AbstractFactory {

	public static ModelAndView getDefaultModelView( Page currentPage) {
		
		ModelAndView modelView = new ModelAndView();
		
		modelView.setViewName("index");
		
		modelView.addObject("currentPage", currentPage);
		
		return modelView;
	};
	
};